// DataPickerView.h : interface of the CDataPickerView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_DATAPICKERVIEW_H__C1FE0843_15FB_4713_A96C_57FD589E953E__INCLUDED_)
#define AFX_DATAPICKERVIEW_H__C1FE0843_15FB_4713_A96C_57FD589E953E__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CDataPickerDoc ;

class CDataPickerView : public CFormView
{
protected: // create from serialization only
	CDataPickerView();
	DECLARE_DYNCREATE(CDataPickerView)

public:
	//{{AFX_DATA(CDataPickerView)
	enum{ IDD = IDD_FORMVIEW_MAIN };
	// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA
	
// Attributes
public:
	CDataPickerDoc* GetDocument();
	CBrush m_Brush;

	CFont   m_Font ;
	HANDLE m_hComRWRun;
	HANDLE m_hCommitRWRun;
// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDataPickerView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual BOOL DestroyWindow();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnInitialUpdate(); // called first time after construct
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	void SetSoftNamePos();
	void HideAllTextCtrl();
	virtual ~CDataPickerView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif
	void InitSysConfig();
protected:
	
	void CreateChnNode();
	void CreateComport();
	void CreateModule();
	void CreateServer();

	void SaveDB();

// Generated message map functions
protected:
	//{{AFX_MSG(CDataPickerView)
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnStaticLock();
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	//}}AFX_MSG
	
	afx_msg void OnCustomdraw(NMHDR* pNMHDR, LRESULT* pResult);
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in DataPickerView.cpp
inline CDataPickerDoc* CDataPickerView::GetDocument()
   { return (CDataPickerDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DATAPICKERVIEW_H__C1FE0843_15FB_4713_A96C_57FD589E953E__INCLUDED_)
